package com.note.simpleshop.module.goods.vo;

import com.note.simpleshop.entity.TbGoods;

import java.io.Serializable;
import java.util.List;

public class GoodsDetailVo implements Serializable {
    private String goodsId;
    private String name;
    private String intro;
    private String detail;
    private String classifyId;
    private String brandId;
    private String paramters;
    private Integer sale;
    private String pics;
    private Integer sort;
    private String thumbnail;
    private List<GoodsSpecVo> goodsSpecVosList;//商品规格，每个规格库存不通，价格不通，具体的商品属性
    private List<SpecVo> specVosList;//规格比如：颜色：红色，绿色 大小：32码，33码

    public String getThumbnail() {
        return thumbnail;
    }

    public void setThumbnail(String thumbnail) {
        this.thumbnail = thumbnail;
    }

    public String getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(String goodsId) {
        this.goodsId = goodsId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getIntro() {
        return intro;
    }

    public void setIntro(String intro) {
        this.intro = intro;
    }

    public String getDetail() {
        return detail;
    }

    public void setDetail(String detail) {
        this.detail = detail;
    }

    public String getClassifyId() {
        return classifyId;
    }

    public void setClassifyId(String classifyId) {
        this.classifyId = classifyId;
    }

    public String getBrandId() {
        return brandId;
    }

    public void setBrandId(String brandId) {
        this.brandId = brandId;
    }

    public String getParamters() {
        return paramters;
    }

    public void setParamters(String paramters) {
        this.paramters = paramters;
    }

    public Integer getSale() {
        return sale;
    }

    public void setSale(Integer sale) {
        this.sale = sale;
    }

    public List<GoodsSpecVo> getGoodsSpecVosList() {
        return goodsSpecVosList;
    }

    public void setGoodsSpecVosList(List<GoodsSpecVo> goodsSpecVosList) {
        this.goodsSpecVosList = goodsSpecVosList;
    }

    public List<SpecVo> getSpecVosList() {
        return specVosList;
    }

    public void setSpecVosList(List<SpecVo> specVosList) {
        this.specVosList = specVosList;
    }

    public void copySpecVo(List<SpecVo> list)
    {
        this.specVosList=list;
    }
    public void copyGoodsSpec(List<GoodsSpecVo> goodsSpecVosList)
    {
        this.goodsSpecVosList=goodsSpecVosList;
    }
    public void copy(TbGoods goods)
    {
        this.goodsId=goods.getId();
        this.name=goods.getName();
        this.intro=goods.getIntro();
        this.detail=goods.getDetail();
        this.classifyId=goods.getClassifyId();
        this.brandId=goods.getBrandId();
        this.paramters=goods.getParamters();
        this.sale=goods.getSale();
        this.pics=goods.getPics();
        this.sort=goods.getSort();
        this.thumbnail=goods.getThumbnail();
    }

    public String getPics() {
        return pics;
    }

    public void setPics(String pics) {
        this.pics = pics;
    }

    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }
}
